/* 引入基础模块 */
@import "lib-mixins";
@import "lib-reset";
/* 引入公共模块*/
@import "com-header";
@import "com-left-menu";

.inner-box{
  max-width: 965px;
  width: 100%;
  margin: 0 auto 10px;
  box-shadow: rgba(0, 0, 0, 0.2) 0 8px 17px 0, rgba(0, 0, 0, 0.188235) 0 6px 20px 0;
  overflow: hidden;
  border-top:1px solid transparent;
  .fixed-bar{
    position: fixed;
    left: auto;
    top: auto;
    background: #eee;
    z-index: 5;
    width: 965px;
    transition: width .05s;
    .title{
      float: left;
      font-size: 16px;
      margin: 13px 0 0 15px ;
      .num{
        font-size: 16px;
        height: 25px;
        width: 25px;
        border-radius: 50%;
        text-align: center;
        color: white;
        background-color: #03A9F4;
        line-height: 25px;
        margin-right: 10px;
      }
    }
    .btn-group{
      float: right;
      i{
        vertical-align: text-top;
        color: #409EEF;
      }
      .save-btn{
        float: right;
        margin: auto 15px;
        &.disabled{
          background: #ccc;
          cursor: no-drop;
        }
      }
    }
  }
  .form-box{
    margin-top:50px;
    .panel-group{
      margin-bottom: 0;
    }
    .type-read{
      .panel-collapse{
        position: relative;
        &:after{
          content: '';
          position: absolute;
          left: 0;
          top: 0;
          width: 100%;
          height: 100%;
          background: rgba(0,0,0,.1);
          cursor: no-drop;
          z-index: 2;
        }
      }
      .del-form{
        display: none !important;
      }
    }
    .type-hidden{
      display: none;
    }
    .panel-heading{
      .panel-title{
        a{
          display: block;
          font-size: 14px;
          padding: 4px 0;
          i{
            float: right;
            margin-top: -4px;
          }
        }
      }
    }
    .panel-body{
      .form-description{
        border: 1px solid #ccc;
        padding: 15px;
        border-radius: 2px;
        position: relative;
        &:after{
          content: '表单描述';
          position: absolute;
          top: -9px;
          left: 9px;
          font-size: 12px;
          background: #fff;
          padding: 0 5px;
        }
      }
      .form-input-box{
        border: 1px solid #ccc;
        padding: 15px;
        border-radius: 2px;
        position: relative;
        margin-top:15px;
        &:after{
          content: '表单内容';
          position: absolute;
          top: -9px;
          left: 9px;
          font-size: 12px;
          background: #fff;
          padding: 0 5px;
        }
      }
      .checkbox label{
        margin:4px 0;
      }
    }
  }
  .hide-form-box{
    position: fixed;
    bottom: 0;
    left:0;
    width: 100%;
    z-index: 3;
    .hide-form-inner{
      max-width: 965px;
      width: 71%;
      margin: 0 auto;
      position: relative;
      left: 90px;
    }
    .hide-all-form{
      background: #fff;
      cursor: pointer;
      border-radius: 1px;
      color: #03A9F4;
      position: absolute;
      right: -30px;
      bottom: 9px;
      padding-bottom: 4px;
      width: 25px;
      text-align: center;
      border: 1px solid #ccc;
      opacity: 0;
      visibility: hidden;
      transition: opacity .3s;
      &.show{
        opacity: 1;
        visibility: visible;
      }
      i{
        float: left;
      }
      span{
        float: left;
      }
    }
  }
}

.noUi-base {
  padding-bottom: 45px;
  z-index: 2;
  cursor: pointer;
}
.noUi-horizontal {
  height: 6px;
  position: relative;
  margin-bottom: 35px;
}
.noUi-origin {
  height: 6px;
}
.noUi-handle{
  width: 15px;
  height: 15px;
  left:-8px;
}
.noUi-handle.noUi-active{
  transform: scale3d(1.4,1.4,1);
}
.noUi-pips,.noUi-pips * {
  -moz-box-sizing: border-box;
  box-sizing: border-box
}

.noUi-pips {
  position: absolute;
  color: #999
}

.noUi-value {
  width: 40px;
  position: absolute;
  text-align: center;
}

.noUi-marker {
  position: absolute;
  background: #CCC
}

.noUi-marker-large,.noUi-marker-sub {
  background: #AAA
}

.noUi-pips-horizontal {
  padding: 5px 0;
  height: 50px;
  top: 100%;
  left: 0;
  width: 100%
}

.noUi-value-horizontal {
  margin-left: -20px;
  padding-top: 20px
}

.noUi-marker-horizontal.noUi-marker {
  margin-left: -1px;
  width: 2px;
  height: 5px
}

.noUi-marker-horizontal.noUi-marker-sub,
.noUi-marker-horizontal.noUi-marker-large {
  height: 10px
}
.calc-num{
  margin-top:20px;
}

#addImg,#addVedio{
  overflow: hidden;
  .img-container,.video-container{
    z-index: 3;
  }
  .img-container,.add-container,.video-container{
    width: 70px;
    height: 70px;
    float: left;
    margin-top: 10px;
    margin-left: 10px;
    position: relative;
    .del-form{
      position: absolute;
      top: -10px;
      right: -9px;
      width: 18px;
      height: 18px;
      background: #DADADA;
      text-align: center;
      line-height: 18px;
      border-radius: 50%;
      font-size: 17px;
      color: #848181;
      cursor: pointer;
      display: block;
    }
    .media-play{
      i{
        position: absolute;
        font-size: 40px;
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        border-radius: 20px;
        background-size: contain;
        margin: -20px 0 0 -20px;
        left: 50%;
        top: 50%;
        color: white;
        cursor: pointer;
      }
    }
    img{
      width: 100%;
      height: 100%;
    }
  }
  .video-container{
    background-color: darkgrey;
  }
  .add-container{
    border: 1px solid #DADADA;
  }
  .upload-img,.upload-video{
    .loading-box{
      text-align: center;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: #fff;
      .loading{
        width: 30px;
        height: auto !important;
        vertical-align: middle;
        display: inline-block;
      }
      .loading + .middle{
        display: inline-block;
        vertical-align: middle;
        width: 0;
        height: 100%;
      }
    }
    i{
      position: absolute;
      font-size: 50px;
      font-weight: 400;
      color: #DADADA;
      margin: -25px 0 0 -25px;
      left: 50%;
      top: 50%;
    }
    input{
      position: relative;
      display: inline-block;
      height: 100%;
      width: 100%;
      cursor: pointer;
      z-index: 2;
    }
  }
}

@media (max-width: 768px) {
  .fixed-bar{
    .num{
      margin-right: 5px !important;
    }
    .title{
      font-size: 12px !important;
      margin-left: 10px !important;
      width: 140px;
      height: 25px;
      overflow: hidden;
    }
    .save-btn{
      margin:auto 10px !important;
    }
  }
  .inner-box .hide-form-box .hide-form-inner{
    left:0;
    width:77%;
  }
}
@media (max-width: 480px) {
  .inner-box .hide-form-box .hide-form-inner{
    left:0;
    width:80%;
  }
}